package t1;

import java.util.ArrayList;

// 用于存储码字的arraylist和码字出现次数的word_sum数组
public class WordAndWordSum {
    private ArrayList<Character> WordArray;
    private ArrayList<Integer> word_sum;
    private int sum;

    @Override
    public String toString() {
        return "WordAndWordSum{" +
                "WordArray=" + WordArray +
                ", word_sum=" + word_sum +
                ", sum=" + sum +
                '}';
    }

    public ArrayList<Character> getWordArray() {
        return WordArray;
    }

    public void setWordArray(ArrayList<Character> wordArray) {
        WordArray = wordArray;
    }

    public ArrayList<Integer> getWord_sum() {
        return word_sum;
    }

    public void setWord_sum(ArrayList<Integer> word_sum) {
        this.word_sum = word_sum;
    }

    public int getSum() {
        return sum;
    }

    public void setSum(int sum) {
        this.sum = sum;
    }

    public WordAndWordSum(ArrayList<Character> wordArray, ArrayList<Integer> word_sum, int sum) {
        WordArray = wordArray;
        this.word_sum = word_sum;
        this.sum = sum;
    }
}
